package org.ym.system.ui.assembler;

import org.springframework.data.domain.Page;
import org.ym.system.domain.model.entity.SysUser;
import org.ym.system.ui.vo.SysUserVO;

import java.util.ArrayList;
import java.util.List;

/**
 * SysUser 转换为 SysUserVO
 * @author ym
 */
public class SysUserConverter {
    /**
     * model 转换为 VO
     * @param sysUser model
     * @return VO
     */
    private SysUserVO convert(SysUser sysUser){
        return SysUserVO.builder()
                .id(sysUser.getId())
                //todo
                .build();
    }
    /**
     * model 转换为 VO
     * @param sysUserList modelList
     * @return VO
     */
    private List<SysUserVO> convert(List<SysUser> sysUserList){
        return new ArrayList<>();
    }
    /**
     * model 转换为 VO
     * @param sysUserPage modelPage
     * @return VO
     */
    private Page<SysUserVO> convert(Page<SysUser> sysUserPage){
        return null;
    }
}
